#include "zmqClient.h"

void service_message_call_back(zmq::socket_t *socket, zmsg &msg, std::vector<worker_t> &queue, std::string &identity,const char *message)
{
    std::cout << "client size:" << queue.size() << std::endl;
    std::cout << "client message:" << message << std::endl;
}

void client_append_call_back(std::vector<worker_t> &queue, std::string &identity)
{
    std::cout << "client size:" << queue.size() << std::endl;
    std::cout << "client " << identity << " add" << std::endl;
}

void client_quit_call_back(std::vector<worker_t> &queue, std::string &identity)
{
    std::cout << "client size:" << queue.size() << std::endl;
    std::cout << "client " << identity << " quit" << std::endl;
}

int main(int argc, char *argv[])
{
    quence_service(5556, &service_message_call_back, &client_append_call_back, &client_quit_call_back);
    return 0;
}
